from PyQt6.QtCore import QRect
from PyQt6.QtWidgets import QWidget, QLabel, QStackedLayout, QSizePolicy


class LoadingMask(QWidget):
    def __init__(self, parent=None):
        super(LoadingMask, self).__init__(parent)
        self.label = QLabel("加载中...")
        self.label.show()
        layout = QStackedLayout()
        layout.addWidget(self.label)
        # layout.setGeometry(QRect(0, 0, 333, 330))
        # self.label.setGeometry(QRect(0, 0, 333, 330))
        self.setLayout(layout)
        self.setStyleSheet("background-color: rgba(0, 0, 0, 150)")
